                <!-- Begin: widget - Banners TV -->
                <div class="widget banners-tv">
<?
if (isset(LayoutPage::$banners['tv'])):
    $banner = LayoutPage::$banners['tv'];
    if ($banner == null):
?>
                    <a href="javascript:;">
                        <img src="<?= _BNN_IMG_ ?>tv.jpg" alt="Banner" />
                    </a>
<?
    else:
        if (strtolower(pathinfo($banner->filepicture, PATHINFO_EXTENSION)) == 'jpg'):
            if (!$banner->id_enterprise):
?>
                    <a href="<?= $banner->href ?>" target="<?= $banner->target ?>">
<? else: ?>
                    <a href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>">
<? endif ?>
                        <img src="<?= _BNN_IMG_.$banner->filepicture ?>" alt="Banner" />
                    </a>
<? else: ?>
                    <object width="370" height="264">
                        <param name="src" value="<?= _BNN_IMG_.$banner->filepicture ?>">
                        <param name="wmode" value="opaque">
                        <embed src="<?= _BNN_IMG_.$banner->filepicture ?>" width="370" height="264"></embed>
                    </object>
<?
        endif;
    endif;
endif
?>
                </div> <!-- End -->
